1 // Draw the box animation depending on the current action
\r
8 draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, image_angle, c_white, 1);
\r
9 if ((flash_count div 3) mod 2 != 0)
\r
10 draw_sprite_ext(SprBoxIcons, box_type, x, y + icon_y, image_xscale, image_yscale, image_angle, c_white, 1);
\r
14 // Box while exploding
\r
16 draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, c_white, 1);
\r
18 if (explosion_count != -1)
\r
20 if (explosion_count >= 5 * 8) // image_number * animation_speed
\r
22 explosion_count = -1;
\r
26 draw_sprite_ext(SprExplosion, explosion_count div 8, x, y, image_xscale, image_yscale, image_angle, c_white, 1);
\r
27 explosion_count += 1;
\r
31 if (icon_speed < 0.01)
\r
37 icon_y -= icon_speed;
\r
38 draw_sprite_ext(SprBoxIcons, box_type, x, y + icon_y, image_xscale, image_yscale, image_angle, c_white, icon_speed);
\r
42 if (explosion_count == -1 && icon_speed == 0) // If explosion and icon rise is over then set action to 2
\r
48 draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, c_white, 1);
\r